import java.rmi.Remote;
import java.rmi.RemoteException;
import java.util.List;

import messagepasser.DocInfo;
import messagepasser.DocPermissions;
import messagepasser.UserInfo;

public interface Server extends Remote{
	public UserInfo login (String user, String password, String ipAddr, int port) throws RemoteException;
	public List<DocInfo> getDocuments (int userId)  throws RemoteException;
	public UserInfo[] getonlineUsers (int userId)  throws RemoteException;
	public void register (Client c, int userid) throws RemoteException;
	public DocPermissions[] getDocUsers (int docId) throws RemoteException;
	public void logout (UserInfo user)  throws RemoteException;
	
	//added for telling a client that another client wnts to chat with him
	public void regForChat (UserInfo  userSrc,UserInfo userDest)  throws RemoteException;
	
}
